<?php
	session_start();
	if(!isset($_SESSION['connection'])){
	 	$_SESSION['connection']= false;
	}
	if(isset($_GET["conn"])){
		if ($_GET["conn"] == 1)
		{
			$_SESSION['connection']= true;
		}
	}
	if(isset($_GET['deco'])){
		$_SESSION['connection'] = false;
	}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>index</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<link rel="stylesheet" type="text/css" title="premier"href="css/style2.css" />
	<link rel="stylesheet" type="text/css" title="second" href="css/style.css" />
	<link rel="stylesheet" media="all" type="text/css" href="style.css" />
	<link rel="stylesheet" media="all" type="text/css" href="menu_style.css" />
</head>
<body>
	<div class="site">
		<div class="header">
			<span>Galaxy CD</span>
		</div>
		<div class="clean"></div>
		<div class="corp">
			<ul id="menu">
				<li><a href="index.php">Home</a></li>
				<?php if(!$_SESSION['connection']):?>
				<li><a href="connexion.php">Connexion</a></li>
				<li><a href="inscription.php">Inscription</a></li>
				<?php else:?>
				<li><a href="ajout.php">Ajouter CD</a></li>
				<li><a href="rechercher.php">Rechercher CD</a></li>
				<?php endif;?>
				<li><a href="map.php">Map</a></li>
				<li><a href="calculatrice.php">Calculatrice</a></li>
				<li><a href="dessin.php">Dessin</a></li>
				<?php if($_SESSION['connection']):?>
				<li><a href="index.php?deco=ok">Deconnexion</a></li>
				<?php endif;?>				
			</ul>
		</div>
		<!-- Contenu -->